package io.gitee.hechenl.easyopc.service.impl;

import io.gitee.hechenl.easyopc.service.ICacheService;
import org.springframework.stereotype.Service;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;


@Service
public class CacheServiceImpl implements ICacheService {

    Map<String, String> cacheMap = new ConcurrentHashMap<>();

    @Override
    public void cache(String key, String value) {
        cacheMap.put(key, value);
    }

    @Override
    public Map<String, String> getAll() {
        return cacheMap;
    }

}
